package com.zmm.zebulon.module.system.biz.dal.mysql.oauth2;

import com.zmm.zebulon.module.system.biz.dal.dataobject.oauth2.OAuth2CodeDO;
import com.zmm.zebulon.starter.mybatis.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;

/**
 * description:  OAuth2 授权码  Mapper
 *
 * @author zebulon
 * package com.zmm.zebulon.module.system.biz.dal.mysql.oauth2
 * name: OAuth2CodeMapper
 * date 2024/1/8 00:13
 */
@Mapper
public interface OAuth2CodeMapper extends BaseMapperX<OAuth2CodeDO> {

    default OAuth2CodeDO selectByCode(String code) {
        return selectOne(OAuth2CodeDO::getCode, code);
    }

}
